#include "RBTree.h"
#include <iostream>
using namespace std;
int main()
{
	//int a[] = { 16, 3, 7, 11, 9, 26, 18, 14, 15 };
	//int a[] = { 4, 2, 6, 1, 3, 5, 15, 7, 16, 14 };
	//RBTree<int, int> t;
	//for (auto e : a)
	//{
	//	t.insert({ e,e });
	//	cout << "insert:" << e << ':' << t.isRBTree() << endl;
	//}
	int n = 10000000;
	RBTree<int, int> t;
	srand(time(NULL));
	for (int i = 0; i < n; ++i)
	{
		int random = rand() + i;
		t.insert({ random, random });
	}
	cout << t.isRBTree() << endl;
	return 0;
}